<!--底部按钮-->
<template>
    <view class="btn-box">
        <button
            v-for="(item,index) in btnList"
            :key="index"
            @click="() => handleBtn(item.method)"
            type="warn"
            class="pms-btn plain"
        >
            {{item.label}}
        </button>
    </view>
</template>

<script>
export default {
    components: {
    },
    props:{
        btnList: {
            type: Array,
            required: true,
            default: () => []
        }
    },
    data() {
        return {
        }
    },
    methods:{
        handleBtn(methodName){
            this.$emit('handleBtn', methodName)
        }
    }
}
</script>

<style>@import "@/common/common-ui.css";</style>
<style>@import "@/common/uView.css";</style>
<style scoped lang="scss">
.btn-box {
    position: fixed;
    width: 100vw;
    bottom: 0;
    left:0;
    background-color: #f7f8fa;
    display: flex;
    justify-content: space-evenly;
}
.pms-btn {
    height: 60rpx;
    min-width: 170rpx;
    line-height: 60rpx;
    border-radius: 60rpx;
    color: #ca171d;
    border-color: #ca171d;
    margin: 30rpx 6rpx;
    font-size: 24rpx;
    &.plain {
        color: #fff;
        background: #ca171d;
    }
}
</style>